package com.study.observermode.springSubject;

import org.springframework.context.ApplicationEvent;

/**
 * @ClassName: MySubject
 * @Description: spring中的被观察对象
 * @Details: 需要继承ApplicationEvent
 * @Author: 郑港旭
 * @Create: 2021-11-16 16:53
 **/
public class MySubject extends ApplicationEvent {
    public MySubject(Object source) {
        super(source);
        System.out.println("my spring subject(event)");
    }
}
